<tagLib name="html" />
<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.db.manage_db}</h3>
        <ul class="tab1">
            <li><a href="__URL__/dbExport"><span>{$Think.lang.db.backup}</span></a></li>
            <li class="current"><a href="__URL__/dbImport"><span>{$Think.lang.db.restore}</span></a></li>
            <li><a href="__URL__/dbOptimize"><span>{$Think.lang.db.optimize}</span></a></li>
        </ul>
    </div>
    <p class="tips">{$Think.lang.db.restore_tips}</p>
    <table class="tb tb2">
        <form name="cpform" method="post" action="__URL__/removeBackup" id="cpform" >
        <input type="hidden" name="op" value="save" />
        <tr><th colspan="15" class="partition">{$Think.lang.db.backup_history}</th></tr>
        <tr>
            <th>{$Think.lang.db.file_name}</th>
            <th>{$Think.lang.db.file_time}</th>
            <th>{$Think.lang.db.file_size}</th>
            <th width="15%">{$Think.lang.actions}</th>
            <th width="10%">{$Think.lang.mark}</th>
        </tr>
        <volist name="fileList" id="vo">
        <tr>
            <td><a href="__URL__/downloadBackup/file_name/{$vo.name}" title="{$Think.lang.db.download}">{$vo.name}</a></td>
            <td>{$vo.time|format_date}</td>
            <td>{$vo.size|byte_format}</td>
            <td>
                <a href="__URL__/dbImport/op/save/file_name/{$vo.name}">{$Think.lang.db.restore}</a>&nbsp;
                <a href="__URL__/downloadBackup/file_name/{$vo.name}">{$Think.lang.db.download}</a>
            </td>
            <td><input type="checkbox" name="backups[]" value="{$vo.name}" /></td>
        </tr>
        </volist>
        <tr class="nobg">
            <td colspan="4"><div class="fixsel right"><input type="submit" class="btn" name="submit" value="{$Think.lang.delete_selected}" /></div></td>
            <td><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'backups')" /><label for="chkall">{$Think.lang.check_all}</label></td>
        </tr>
        </form>
    </table>
</div>

<script type="text/javascript">
$(function(){

});
</script>

<include file="Public:footer" />
